Automated oxygen titration based on the oxygen saturation during activity